<script>
export default {
  onLaunch: function() {
    console.log("App Launch");
    uni.getSystemInfo({
      success: res => {
        const { safeAreaInsets } = res;
        console.log(safeAreaInsets.bottom);
        uni.setStorageSync("safeBottom", safeAreaInsets.bottom);
        uni.setStorageSync("safeTop", safeAreaInsets.top);

        // 1
        // 2
		// 3
		// 4
      }
    });
  },

  onShow: function() {
    console.log("App Show");
    uni.hideHomeButton();
  },
  onHide: function() {
    console.log("App Hide");
  }
};
</script>

<style lang="scss">
	@import "@/uni_modules/uview-ui/index.scss"
</style>
